// 总结面板
const $eventSummary = this.pageObj.getApiWidgetByAliasName('event-summary')?.widgetObj;
// 路由参数
let params = this.pageObj.getVariables().find(v => v.name === "screen_params")?.value;

if (params) {
  try {
    params = JSON.parse(params)
  } catch (e) {
    console.error(e)
  }
}

// 隐藏按钮组
this.pageObj.getApiWidgetsByClassName('event-operate')?.forEach(v => v.hideWidget());

$('#summary .file-box').text(summary.fileName);
window.parent.postMessage({ type: 'nav/style', pageName: '总结' }, document.referrer);

this.pageObj.setVariables([{ name: 'timeline_event_id', value: params.id }]);

if ($eventSummary) {
  $eventSummary.setData([{name: 'aavvc'}]);
  $eventSummary.show();
  $eventSummary.render();
}
